package com.weng.cloud.trace.aspect;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Aspect
@Component
@Slf4j
public class ScheduledAspect {

    @Pointcut("@annotation(org.springframework.scheduling.annotation.Scheduled)")
    public void proxyAspect() {
    }

//    @Before("proxyAspect()")
//    public void before(JoinPoint joinPoint) throws Throwable {
//        String traceId= LogHelper.getTraceId();
//        MDC.put(LogCollectionConstants.traceId, traceId);
//    }
}